package com.zen.lon.open;

import com.zen.lon.open.remote.annotation.RemoteClient;
import java.util.Map;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ZonLen since on 2021/9/9 下午10:03
 */
@RemoteClient(address = "http://localhost:8082", serverContextPath = "/")
public interface DemoProxyAgentClient {

  @PostMapping("/spring/config/{a}")
  String config(@RequestParam("zhanglong") String zhanglong, @PathVariable("a") String a, @RequestParam("aa") String aa,
      @RequestBody Map<String, String> map);
}
